window.hooks={
	/* resize */
	beginResizeSE :
		function(evt) window.listeners.send("resize",{x:evt.screenX,y:evt.screenY,event:evt,direction:"se"}),
	onResizeStartBefore :
		function(callback) window.listeners.add("resize-start-before",callback),
	onResizeTemporaryAfter :
		function(callback) window.listeners.add("resize-temporary-after",callback),
	onResizeEndAfter :
		function(callback) window.listeners.add("resize-end-after",callback),
		
	beginRestoreDataWrite :
		function(evt) window.listeners.send("restoredatawrite",null),
	onRestoreDataWriteBefore :
		function(callback) window.listeners.add("restoredatawrite-before",callback),
	onRestoreDataWriteAfter :
		function(callback) window.listeners.add("restoredatawrite-after",callback),
};